import 'package:flutter/material.dart';

class HYMyAppTheme {

  static const double bodyFontSize = 14;
  static const double smallFontSize = 16;
  static const double normalFontSize = 20;
  static const double largeFontSize = 24;

  static final ThemeData normalTheme = ThemeData(
      primarySwatch: Colors.pink,
      canvasColor: Color.fromRGBO(255,254,222,1),//背景色
      primaryTextTheme: TextTheme(headline6: TextStyle(color: Colors.white)),
//      brightness: Brightness.light,
      buttonTheme: ButtonThemeData(minWidth: 30, height: 30),
//      cardTheme: CardTheme(
//          color: Colors.orangeAccent,
//          elevation: 10
//      ),
      textTheme: TextTheme(
        bodyText2: TextStyle(fontSize: bodyFontSize,color: Color.fromARGB(255,85,67,65)),
        headline4: TextStyle(fontSize: smallFontSize,color: Color.fromARGB(255,85,67,65)),
        headline3: TextStyle(fontSize: normalFontSize,color: Color.fromARGB(255,85,67,65)),
        headline2: TextStyle(fontSize: largeFontSize,color: Color.fromARGB(255,85,67,65)),
      )
  );

  static final ThemeData darkTheme = ThemeData(
      primarySwatch: Colors.grey,
      canvasColor: Color.fromARGB(255,254,222,1),
      primaryTextTheme: TextTheme(headline6: TextStyle(color: Colors.white)),
//      brightness: Brightness.dark,
      buttonTheme: ButtonThemeData(minWidth: 30, height: 30),
      cardTheme: CardTheme(
          color: Colors.grey,
          elevation: 10
      ),
      textTheme: TextTheme(
        bodyText2: TextStyle(fontSize: bodyFontSize,color: Color.fromARGB(255,255,255,255)),
        headline4: TextStyle(fontSize: smallFontSize,color: Color.fromARGB(255,255,255,255)),
        headline3: TextStyle(fontSize: normalFontSize,color: Color.fromARGB(255,255,255,255)),
        headline2: TextStyle(fontSize: largeFontSize,color: Color.fromARGB(255,255,255,255)),
      )
  );
}